package zuoye5;

public class Student {
    private String name;
    private int id;
    private int age;
    private String tell;
    public Student(){}

    public Student(int id,String name,  int age, String tell) {
        this.name = name;
        this.id = id;
        this.age = age;
        this.tell = tell;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getTell() {
        return tell;
    }

    public void setTell(String tell) {
        this.tell = tell;
    }
    public boolean equals(Object another){
        if (this==another){
            return true;
        }
        if (another instanceof Student){
            boolean flag=false;
            Student student=(Student)another;
            if (this.id==student.id&&this.name ==(student.name)){
                return flag;
            }
        }
        return false;
    }
}
